import React, { Component } from "react";
import { BrowserRouter, Route, Redirect, Switch } from "react-router-dom";

import Login from "./container/login";
import Register from "./container/register";
import MyCollect from "./container/collect";
import MyHistory from "./container/history";
import Dashboard from './components/dashboard'


class App extends Component {
  render() {
    return (
      <BrowserRouter>
        <Switch>
          <Route path="/login" component={Login} />
          <Route path="/register" component={Register}></Route>
          <Route path="/myCollect" component={MyCollect}></Route>
          <Route path="/MyHistory" component={MyHistory}></Route>
          <Route component={Dashboard}></Route>
        </Switch>
      </BrowserRouter>
    );
  }
}

export default App;
